<template>
    <div class="container">
        <!-- <svg-icon icon-class="p__bg" style="height:100%;width:100%;"></svg-icon> -->

        <div class="container-main">
            <div class="main left-main left-radius">
                <div class="main-inner-top">
                    <div class="main-inner-top-title"></div>
                    <div class="main-inner-top-content">
                        欢迎您登录，
                        <br />后台管理系统
                    </div>
                </div>
                <div class="main-inner-bottom">
                    <img src="../../../static/image/pic.png" alt="">
                </div>
            </div>
            <div class="main right-main right-radius">
                <div class="login-main1">
                    <div class="login-inner-title">登录</div>
                    <el-form :model="loginForm" label-width="60px">
                        <div class="layout">
                            <el-form-item prop="loginname" class="lineHeight">
                                <el-input
                                    type="text"
                                    v-model="loginForm.loginname"
                                    class="inputClass"
                                ></el-input>
                            </el-form-item>
                        </div>

                        <div class="layout">
                            <el-form-item prop="password" class="lineHeight">
                                <el-input
                                    type="password"
                                    class="inputClass"
                                    v-model="loginForm.password"
                                    ref="password"
                                >
                                    <el-button slot="append"></el-button>
                                </el-input>
                            </el-form-item>
                        </div>

                        <div class="layout no-border">
                            <el-button
                                type="primary"
                                style="width: 100%; background-color: #1890ff; font-size: 24px"
                                @click="login"
                            >登录</el-button>
                        </div>

                        <!-- <el-button type="info" @click="resetForm('refname')"
                >{{ $t("login.reset") }}
                        </el-button>-->
                    </el-form>
                </div>
            </div>
        </div>
    </div>
</template>
<script>

export default {
    components: {},
    data() {
        return {
            loginForm: {
                loginname: "admin",
                password: "admin",
            },
        }
    },

    methods: {
        login() {
            if (this.loginForm.loginname == 'admin', this.loginForm.password == 'admin') {
                localStorage.setItem('userInfo', this.loginForm.loginname)
                this.$router.push('/')
            }
        }
    }
};
</script>
<style lang="scss">
.container {
    background-image: url("/static/image/bg.png");
    height: 100%;
    width: 100%;
    position: fixed;

    .container-main {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
    }
    .main {
        width: 600px;
        height: 720px;
    }
    .left-main {
        width: 600px;
        height: 720px;
        background-image: linear-gradient(
                -69deg,
                rgba(1, 100, 192, 0.8) 0%,
                rgba(19, 104, 224, 0.8) 25%,
                rgba(37, 108, 255, 0.8) 51%,
                rgba(57, 159, 253, 0.8) 100%
            ),
            linear-gradient(#ffffff, #ffffff);
        background-blend-mode: normal, normal;
        border-radius: 20px 0px 0px 20px;
    }
    .right-main {
        background: #fff;
    }
    .left-radius {
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }
    .right-radius {
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    .main-inner-top {
        margin-top: 46px;
        margin-right: 40px;
        margin-left: 40px;
    }
    .main-inner-bottom {
        margin-top: 120px;
        margin-left: 20px;
    }
    .main-inner-top-title {
        height: 4px;
        background: #fff;
        width: 50px;
    }
    .main-inner-top-content {
        color: #fff;
        font-size: 29px;
        line-height: 50px;
    }
    .login-inner-title {
        text-align: center;
        color: #1890ff;
        font-size: 32px;
        font-family: MicrosoftYaHei;
        font-size: 32px;
        font-weight: normal;
        font-stretch: normal;
        line-height: 48px;
        color: #1890ff;
        margin: 69px;
    }
    .inputClass {
        input {
            width: 320px !important;
            border-top-width: 0px !important;
            border-left-width: 0px !important;
            border-right-width: 0px !important;
            border-bottom-width: 0px !important;
            background: #fff !important;
            font-size: 20px;
            height: 44px !important;
            line-height: 44px !important;
        }
        div {
            background: none;
            border: none;
            .syse {
                font-size: 17px;
                cursor: pointer;
            }
        }
    }

    .layout {
        display: flex;
        width: 400px;
        margin: 0 auto;
        border-bottom: 1px solid #e3e7ed;
        height: 46px;
        line-height: 46px;
        margin-bottom: 40px;
    }

    .el-form-item__content {
        margin-left: 0px !important;
    }
    .layout-icon {
        font-size: 22px;
        text-align: center;
        /* margin-top: 5px; */
        height: 39px !important;
        line-height: 39px !important;
    }
    .no-border {
        border: none;
    }

    input:-webkit-autofill {
        box-shadow: 0 0 0px 1000px #fff inset !important;

        -webkit-text-fill-color: #000 !important;
    }
    .titless {
        height: 50px;
        line-height: 50px;
    }
    .verifySpan {
        height: 40px;
        display: inline-flex;
        line-height: 40px;
        position: relative;
        top: -10px;
    }
    .lineHeight {
        line-height: 46px;
    }
}
</style>